﻿// -------------------------------------------------------------------------
//    @FileName         :    NFCityPlayerBuffExt.h
//    @Author           :    Gao.Yi
//    @Date             :    2025-09-15
//    @Email			:    445267987@qq.com
//    @Module           :    NFCityPlayerBuffExt
//    @Desc             :
//
// -------------------------------------------------------------------------

#pragma once

#include "proto_city.nanopb.h"
#include "proto_cs.pb.h"

class NFCityPlayerBuffExt
{
public:
    NFCityPlayerBuffExt();
    ~NFCityPlayerBuffExt();
    int CreateInit();
    int ResumeInit();

public:
    int Init(const proto_ff::RoleBuffDataCS* pBuffData);
    int MakeBuffData(proto_ff::BattlePlayerHero* pPlayerHero);

    int AddBuff(const proto_ff::CityBuffOneCS& oBuffData);
    int DelBuff(const proto_ff::CityBuffOneCS& oBuffData);
    CityBuffOneCS* GetBuff(int id);
private:
    RoleBuffDataCS m_stData;
};
